package com.jinlejia.bbs.widget.mp3;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.LinearLayout;

import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;

import com.jinlejia.bbs.R;
import com.jinlejia.bbs.databinding.BbsMp3ViewLayoutBinding;

/**
 * @author 王进 on 2019/4/9.
 */

public class Mp3View extends LinearLayout {
    public Mp3View(Context context) {
        this(context, null);
    }

    public Mp3View(Context context, @Nullable AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public Mp3View(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView();
    }

    private BbsMp3ViewLayoutBinding binding;

    private void initView() {
        LayoutInflater inflater = LayoutInflater.from(getContext());
        binding = DataBindingUtil.inflate(inflater, R.layout.bbs_mp3_view_layout, this, true);
    }

    public BbsMp3ViewLayoutBinding getBinding() {
        return binding;
    }
}
